//
//  DefalutVarFile.h
//  SanYiTeaching
//
//  Created by 李文强 on 2019/4/2.
//  Copyright © 2019 李文强. All rights reserved.
//

#ifndef DefalutVarFile_h
#define DefalutVarFile_h
//AccessID
#define AccessID 2200336028
//ACCESS KEY
#define AccessKey @"IG2W9WI174ZU"
//账号
#define AcountDefalut @"Acount"
//账号ID
#define AcountIDDefalut @"AcountID"
// t融云聊天ID
#define RYIMidIDDefalut @"imid"
// t融云聊天token
#define RYTokenDefalut @"rongtoken"
// t融云聊天UserId

#define RYUserIdDefalut @"userId"
//t融云的name
#define RYUserNameDefalut @"userName"
//t融云的头像

#define RYUserPathDefalut @"headpath"
//腾讯im sdkid
#define kTenXunIMSDKAppId = 1400117864
#define kTenXunIMSDKAppIdAt3rd = @"1400117864"

//腾讯接受到消息后的通知
#define TUIKitNotification_TIMMessageListener @"TUIKitNotification_TIMMessageListener"



//n密码
#define PassDefalut @"Password"
//Token
#define TokenDefalut @"token"
//用户登录信息Model
#define UserInforModelDefalut @"userInfoModel"
//取token
#define Token [USERDEFAL objectForKey:TokenDefalut]
//验证码类型
#define VerifyType @"101"
//记住密码
#define AcountList @"AcountList"
//记住密码按钮状态
#define RemaberButtonStateDefalut @"RememberState"
//教师班级
#define ClassListOfTeacherDefalut @"MentorClassListData"
//默认的webview得地址http://image.mykeyu.cn/
// http://image.31waiyu.com/Student\\郑瑾琳\\201910071115021995-7098.png"
#define kSYWebViewUrlDefent @"http://image.31waiyu.com/"
//版本码
#define VersionCodeDefalut @"VersionCode"
//刷新辅导页面得数据
#define kNotification @"REFRESH_TABLEVIEW"

//创建班级-添加学生 考试后三明，前三名，成绩异常
#define kKaoShiId @"kKaoShiId"
// --------------班级id
#define kKaoShiClassId @"kBanJiClassId"
//                  类型
#define kKaoShiType @"kBanJiType"

#ifdef DEBUG
#define YLSLog(FORMAT, ...) fprintf(stderr, "%s:%zd\t%s\n", [[[NSString stringWithUTF8String: __FILE__] lastPathComponent] UTF8String], __LINE__, [[NSString stringWithFormat: FORMAT, ## __VA_ARGS__] UTF8String]);
#else
#define NSLog(FORMAT, ...) nil
#endif
#endif /* DefalutVarFile_h */

// @interface
#define singleton_interface(className) \
+ (className *)shared##className;


// @implementation
#define singleton_implementation(className) \
static className *_instance; \
+ (id)allocWithZone:(NSZone *)zone \
{ \
static dispatch_once_t onceToken; \
dispatch_once(&onceToken, ^{ \
_instance = [super allocWithZone:zone]; \
}); \
return _instance; \
} \
+ (className *)shared##className \
{ \
static dispatch_once_t onceToken; \
dispatch_once(&onceToken, ^{ \
_instance = [[self alloc] init]; \
}); \
return _instance; \
}
